import config from "@/utils/config"
import http from "@/utils/request"
export default {
	get: {
		url: `pet/get`,
		name: "宠物详情",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getCase: {
		url: `pet/get_case`,
		name: "案例详情",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getGroup: {
		url: `pet/get_group`,
		name: "获取分组",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	del: {
		url: `pet/del`,
		name: "删除宠物",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	avatar: {
		url: `pet/avatar`,
		name: "修改宠物头像",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	getRemark: {
		url: `pet/get_remark`,
		name: "备注详情",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	delCase: {
		url: `pet/del_case`,
		name: "删除案例",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	delRemark: {
		url: `pet/del_remark`,
		name: "删除备注",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	//全部宠物
	getList: {
		url: `pet/get_list`,
		name: "宠物列表",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	//病例列表
	getCaseList: {
		url: `pet/get_case_list`,
		name: "病例列表",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	//病例列表
	saveCase: {
		url: `pet/save_case`,
		name: "保存案例",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	saveRemark: {
		url: `pet/save_remark`,
		name: "保存备注",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	my: {
		url: `pet/my`,
		name: "我的宠物",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	breed: {
		url: `pet/breed`,
		name: "宠物品种",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	gender: {
		url: `pet/gender`,
		name: "宠物性别",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	save: {
		url: `pet/save`,
		name: "添加修改宠物",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	//病例列表
	getRemarkList: {
		url: `pet/get_remark_list`,
		name: "备注列表",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getToiletLog: {
		url: `pet/get_toilet_log`,
		name: "如厕日志",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getWeightLog: {
		url: `pet/get_weight_log`,
		name: "体重日志",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	check_weight: {
		url: `pet/check_weight`,
		name: "检查相近体重",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	delGroupCate: {
		url: `pet/del_group_cate`,
		name: "删除分组里的猫咪",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	addGroupCate: {
		url: `pet/add_group_cate`,
		name: "添加分组里的猫咪",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
}
